
R3F_FNCT_Bomber = {
	private ["_type_mun","_item","_pos","_radius","_duree","_densite","_orgin_x","_origin_y","_nb","_time_start","_x","_y","_boom","_posboom"];
	// diag_log Format["Bomber: %1",_this];
	_type_mun	= _this select 0;
	if (typeName _type_mun != "STRING") exitWith {};
	_item = _this select 1;
	if (isNil "_item") exitWith {};
	_pos = [_item] call R3F_FNCT_GetPos;
	if (count _pos == 0) exitWith {};
	_radius = _this select 2;
	if (typeName _radius != "SCALAR") exitWith {};
	_radius = 10 max _radius;
	_duree = _this select 3;
	if (typeName _duree != "SCALAR") exitWith {};
	_duree = 1 max _duree;
	_densite = _this select 4;
	if (typeName _densite != "SCALAR") exitWith {};
	_densite = 0.042 max _densite;
	_origin_x	= (_pos select 0);
	_origin_y	= (_pos select 1);
	_nb = 0;
	_time_start = time;
	while {(time-_time_start) < _duree} do {
		sleep _densite;
		_x = random _radius;
		_y = random _radius;
		if ((random 1) < 0.5) then {_x = -_x;};
		if ((random 1) < 0.5) then {_y = -_y;};
		_posboom = [_origin_x + _x,_origin_y + _y,-0.1];
		_boom = _type_mun createvehicle _posboom;
		_boom setdammage 1;
		if (!isNil "ACV_FNCT_Broadcast_BIS_Effects_Burn") then {if (random 1 > 0.5) then {[_posboom,5,15] spawn ACV_FNCT_Broadcast_BIS_Effects_Burn;};};
		_nb = _nb +1
	};
	_nb;
};
